package monster.com.cvh.util;


/**
 * 时间转换工具
 */
public class TimeUtil {
    public static String calculateTime(long time){
        if (time <60 ){
            return "刚刚";
        }else if (time > 60 && time <3600){
            return time/60 + "分钟前";
        }else if(time >3600 && time < 86400){
            return time/3600 +"小时前";
        }else if (time>86400){
            return time/86400 +"天前";
        }
        return null ;
    }
}
